<?php
namespace Foam\Model;

class FicheTechnique
{
    public $id_fiche;
    public $id_ingredient;
    public $quantite;
    public $condition;
    public $conservation;
    public $cadencier;
    public $id_produit;
    
    public function exchangeArray($data)
    {
        $this->id_fiche = (isset($data['id_fiche'])) ? $data['id_fiche'] : null;
        $this->id_ingredient = (isset($data['id_ingredient'])) ? $data['id_ingredient'] : null;
        $this->quantite = (isset($data['quantite'])) ? $data['quantite'] : null;
        $this->condition = (isset($data['condition'])) ? $data['condition'] : null;
        $this->conservation = (isset($data['conservation'])) ? $data['conservation'] : null;
        $this->cadencier = (isset($data['cadencier'])) ? $data['cadencier'] : null;
        $this->id_produit = (isset($data['id_produit'])) ? $data['id_produit'] : null;
    }
}